SUBROUTINE IMAGEANCHOR
* Demonstrate the use of RW_IMAGE_ANCHOR.* This page is designed to be loaded into a frameset, with a* frame called "right". When an image is clicked, the new page* is loaded into this frame.* Include the RealWeb definitions
INCLUDE #RW.INCLUDE.DEFS FROM /SYSFILES/REALWEB,BP
* Get the URL of the Reality item server.
IMAGEFILE = ""
CALL RW_GET_PARAM("__isurl", IMAGEFILE)* Specify the location of the file containing the images.
IMAGEFILE = IMAGEFILE : "/REALWEB-ITEMS/"
* Start the HTML page.CALL RW_START_HTML_PAGE("Image anchor Example", "", "", "", "")* Insert a heading.
TEXT = "RealWeb Examples"
CALL RWS_HEADING(TEXT, 3, "")CALL RW_PUT(TEXT)* Set up the image array.
IMAGES = ""
IMAGES<1> = IMAGEFILE : "Arrow1.gif" ;* Normal image.
IMAGES<2> = IMAGEFILE : "Arrow2.gif" ;* Mouse over image.
IMAGES<3> = IMAGEFILE : "Arrow3.gif" ;* Mouse click image.* Create a paragraph containing a list, with images used as bullets.* Each image will be a link to another page, that will be loaded* into the right hand frame.CALL RW_START_PARA("", "")CALL RW_IMAGE_ANCHOR("WELCOME", "Image anchor", IMAGES, "right", "")CALL RW_PUT(" RW_START_HTML_PAGE")CALL RW_NEWLINECALL RW_IMAGE_ANCHOR("PARA_S", "Image anchor", IMAGES, "right", "")CALL RW_PUT(" RWS_PARA")CALL RW_NEWLINECALL RW_IMAGE_ANCHOR("DIV_S", "Image anchor", IMAGES, "right", "")CALL RW_PUT(" RWS_DIV")CALL RW_NEWLINECALL RW_IMAGE_ANCHOR("IMAGE1", "Image anchor", IMAGES, "right", "")CALL RW_PUT(" RW_IMAGE")CALL RW_END_PARA* Complete the page.CALL RW_END_PAGE
RETURN
This shows the frameset after clicking the RW_START_HTML_PAGE and with the
mouse over the RWS_PARA image.